export default {
  name: 'VueFormStep',
  componentName: 'VueFormStep',
  props: {
    active: String,
    label: String
  },
  created() {
    this.$parent.steps.push(this)
  },
  render(h) {
    return h(
      'div',
      { class: 'vue-form-step', style: `display: ${parseInt(this.active) === this.$parent.active ? 'block' : 'none'}` },
      this.$slots.default
    )
  }
}
